package com.syxp.pda.service.plan.impl;

import java.util.Set;

import org.springframework.transaction.annotation.Transactional;

import com.syxp.pda.core.dao.BaseDao;
import com.syxp.pda.core.service.impl.BaseServiceImpl;
import com.syxp.pda.core.util.ArraysBuilder;
import com.syxp.pda.entity.base.CHKLine;
import com.syxp.pda.entity.base.DefineIDZone;
import com.syxp.pda.service.plan.CHKLineService;

/**
 * 线路管理
 * @version 1.0 2011/07/25
 * @author Light
 *
 */
@Transactional
public class CHKLineServiceImpl extends BaseServiceImpl<CHKLine> implements CHKLineService {

	public CHKLineServiceImpl(BaseDao<CHKLine> baseDao) {
		super(baseDao);
	}

	public Set<DefineIDZone> getLineZones(int chklineID) {
		CHKLine chkLine = getDao().get(chklineID) ;
		return ArraysBuilder.buildSet(chkLine.getDefineIDZones());
	}
}
